//引入react jsx写法的必须
import React from 'react'; 
//引入需要用到的页面组件 
import Login from '../cpts/Login';
import Main from '../cpts/Main';
//引入一些模块
import { BrowserRouter as Router, Route} from "react-router-dom";

function router(){
return (
<Router>
    <Route path="/" exact component={Login} />
    {/* <Route path="/login" component={Login} /> */}
    <Route path="/main/" component={Main} />
</Router>);
}

export default router;